package demo1;

class Resume {
    private String name;
    private String sex;
    private int age;
    //无参构造
    public Resume() {
    }
    public Resume(String name, String sex, int age) {
        this.name = name;
        this.sex = sex;
        this.age = age;
    }

    //get方法
    public String getName() {
        return this.name;
    }
    public String getSex() {
        return this.sex;
    }
    public int getAge() {
        return this.age;
    }
    public void introduce() {
        System.out.println("我是: " + this.name + ",\n性别: "
        + this.sex + ",\n年龄 " + this.age);
    }
}
public class Three {
    public static void main(String[] args) {
        Resume resume = new Resume("李四","男",20);
        resume.introduce();
    }
}
